home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 119
/
(Vol 119) Nov 09 2010.iso
/
TGKI-109
/
Games
/
bounce_crusher.swf
/
scripts
/
frame_1
/
DoAction.as
Wrap
Text File
|
2010-11-09
|
3KB
|
101 lines
function my_menu()
{
_root.gotoAndStop("menuScreen");
}
function myHigh()
{
game_quality = "HIGH";
}
function myMed()
{
game_quality = "MEDIUM";
}
function myLow()
{
game_quality = "LOW";
}
function myKill()
{
sound_on = false;
bgSound.stop();
}
function myStart()
{
sound_on = true;
bgSound = new Sound(this);
bgSound.attachSound("track_" + _root.currentLevel);
bgSound.start(0,99);
}
function mySite()
{
getUrl("http://www.chromeshark.com", "");
}
function mySponsor()
{
getUrl("http://www.maxgames.com", "");
}
function removeAllClips()
{
_quality = "HIGH";
bgSound.stop();
removeMovieClip(drawLine);
removeMovieClip(starSpin1);
removeMovieClip(starSpin2);
removeMovieClip(barLeft);
removeMovieClip(barRight);
removeMovieClip(barTop);
removeMovieClip(barBase);
removeMovieClip(background1);
removeMovieClip(background2);
removeMovieClip(background3);
removeMovieClip(ballBounce);
removeMovieClip(topMask);
removeMovieClip(mapHolder);
removeMovieClip(powerUp);
var _loc1_ = 1;
while(_loc1_ <= 20)
{
removeMovieClip("bit" + _loc1_);
_loc1_ = _loc1_ + 1;
}
}
stop();
local_data = SharedObject.getLocal("user_data");
var i = 1;
while(i <= 5)
{
_root["stage_score" + i] = _root.local_data.data["stage_score" + i];
if(_root["stage_score" + i] == undefined)
{
_root["stage_score" + i] = 0;
}
i++;
}
var myContextMenu = new ContextMenu();
myContextMenu.hideBuiltInItems();
var my_menu = new ContextMenuItem("Go To Menu",my_menu);
myContextMenu.customItems.push(my_menu);
var myHigh = new ContextMenuItem("Quality: High",myHigh);
myContextMenu.customItems.push(myHigh);
var myMed = new ContextMenuItem("Quality: Medium",myMed);
myContextMenu.customItems.push(myMed);
var myLow = new ContextMenuItem("Quality: Low",myLow);
myContextMenu.customItems.push(myLow);
var myKill = new ContextMenuItem("Kill Music",myKill);
myContextMenu.customItems.push(myKill);
var myStart = new ContextMenuItem("Start Music",myStart);
myContextMenu.customItems.push(myStart);
var mySite = new ContextMenuItem("Chrome Shark Media",mySite);
myContextMenu.customItems.push(mySite);
var mySponsor = new ContextMenuItem("Max Games",mySponsor);
myContextMenu.customItems.push(mySponsor);
_root.menu = myContextMenu;
score_level1 = 4000;
score_level2 = 3750;
score_level3 = 3500;
score_level4 = 3250;
score_level5 = 3000;
score_level6 = 2500;
sound_on = true;
game_quality = "MEDIUM";